"use client";

import { ConnectButton } from "@rainbow-me/rainbowkit";
import { useAccount } from "wagmi";

export function Header() {
  const { address, isConnected } = useAccount();

  return (
    <div style={{ padding: "2rem" }}>
      <h1>Decentralized Lotterry</h1>
      <ConnectButton />
      {isConnected && <p>已连接: {address}</p>}
    </div>
  );
}
